package com.mj.fragment;

import com.mj.R;
import com.mj.activity.Activity_Detail;
import com.mj.base.BaseFragment;

public class Fragment_Info extends BaseFragment {

	@Override
	protected int getID() {
		return R.layout.fragment_info;
	}

	@Override
	protected void editView() {
		Activity_Detail activity_Detail = (Activity_Detail) baseActivity;
		aq.id(R.id.imageView2).image(activity_Detail.avatar.getAvatar());
		aq.id(R.id.textView1).text(activity_Detail.avatar.getNickname());
		aq.id(R.id.textView4).text(activity_Detail.avatar.getAge() + "");
		if (activity_Detail.avatar.getSex() == 1) {
			aq.id(R.id.textView4).background(R.drawable.age_boy);
		}
		aq.id(R.id.textView2).text("城市:" + activity_Detail.avatar.getCity());
	}

}
